package com.orcsystem.common.to;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @CreateData: 2020/11/15-10:21
 * Author   AiHongSen
 * 方法说明
 * SL 查询、DL 删除、UP 更新、IN 新增方法
 * SkuEsModel->作用:
 */
@Data
public class SkuEsModel {

    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    private Long saleCount;
    // 是否 有库存
    private Boolean hasStock;
    // 热度评分
    private Long hotScore;
    // 品牌id
    private Long brandId;

    private String brandName;
    // 品牌logo
    private String brandImg;
    // 分类id
    private Long catelogId;
    // 分类名
    private String catalogName;
    // 属性值
    private List<Attrs> attrs;
    @Data
    public static class Attrs{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
